
<!DOCTYPE html>
<html lang="en">

<head>

    <!-- Basic -->
    <meta charset="UTF-8" />

    <title>友享校园 | Fire - Admin Template</title>

    <!-- Mobile Metas -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

    <!-- Import google fonts -->

    <!-- Favicon and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico" type="image/x-icon" />
    <link rel="apple-touch-icon" href="../assets/ico/apple-touch-icon.png" />
    <link rel="apple-touch-icon" sizes="57x57" href="../assets/ico/apple-touch-icon-57x57.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="../assets/ico/apple-touch-icon-72x72.png" />
    <link rel="apple-touch-icon" sizes="76x76" href="../assets/ico/apple-touch-icon-76x76.png" />
    <link rel="apple-touch-icon" sizes="114x114" href="../assets/ico/apple-touch-icon-114x114.png" />
    <link rel="apple-touch-icon" sizes="120x120" href="../assets/ico/apple-touch-icon-120x120.png" />
    <link rel="apple-touch-icon" sizes="144x144" href="../assets/ico/apple-touch-icon-144x144.png" />
    <link rel="apple-touch-icon" sizes="152x152" href="../assets/ico/apple-touch-icon-152x152.png" />

    <!-- start: CSS file-->

    <!-- Vendor CSS-->
    <link href="../assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../assets/vendor/skycons/css/skycons.css" rel="stylesheet" />
    <link href="../assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="../assets/vendor/css/pace.preloader.css" rel="stylesheet" />

    <!-- Plugins CSS-->
    <link href="../assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet" />
    <link href="../assets/plugins/scrollbar/css/mCustomScrollbar.css" rel="stylesheet" />
    <link href="../assets/plugins/bootkit/css/bootkit.css" rel="stylesheet" />
    <link href="../assets/plugins/magnific-popup/css/magnific-popup.css" rel="stylesheet" />
    <link href="../assets/plugins/fullcalendar/css/fullcalendar.css" rel="stylesheet" />
    <link href="../assets/plugins/jqvmap/jqvmap.css" rel="stylesheet" />

    <!-- Theme CSS -->
    <link href="../assets/css/jquery.mmenu.css" rel="stylesheet" />

    <!-- Page CSS -->
    <link href="../assets/css/style.css" rel="stylesheet" />
    <link href="../assets/css/add-ons.min.css" rel="stylesheet" />

    <!-- end: CSS file-->

    <!-- Head Libs -->
    <script src="../assets/plugins/modernizr/js/modernizr.js"></script>
</head>

<body>

<!-- Start: Header -->
<% include public.ejs %>
<!-- Sidebar Footer-->
<div class="sidebar-footer" style="display: none;">

</div>
<!-- End Sidebar Footer-->
</div>
<!-- End Sidebar -->

<!-- Main Page -->
<div class="main ">
    <!-- Page Header -->
    <div class="page-header">
        <div class="pull-left">
            <ol class="breadcrumb visible-sm visible-md visible-lg">
                <li><a href="index.html"><i class="icon fa fa-home"></i>Home</a></li>
                <li class="active"><i class="fa fa-laptop"></i>友享校园</li>
            </ol>
        </div>
        <div class="pull-right">
            <h2>友享校园</h2>
        </div>
    </div>
    <!-- End Page Header -->

    <div class="col-sm-12">
        <div class="panel panel-default bk-bg-white">
            <div class="panel-heading bk-bg-white">
                <h6><i class="fa fa-indent red"></i>添加公告<a href="Billboard.html">查看公告列表</a></h6>
                <div class="panel-actions">
                    <a href="#" class="btn-minimize"><i class="fa fa-caret-up"></i></a>
                    <a href="#" class="btn-close"><i class="fa fa-times"></i></a>
                </div>
            </div>

            <form  method="post" action="/web/updatehomepagebanner" class="panel-body" enctype="multipart/form-data">
                <div class="form-group has-success">
                    <label class="control-label" for="inputSuccess1">编号</label>
                    <input class="form-control" name="bannerid" readonly="readonly" value=<%=bannerid[0].bannerid%>>
                </div>
                <div class="form-group has-success">
                    <label class="control-label" for="inputSuccess1">banner图片</label>
                    <img src="../img/<%=bannerid[0].bannerpic%>">
                </div>
                <label class="btn-w-m btn-danger" for="inputSuccess1">*注 不上传图片默认为不修改</label>
                <div class="form-group has-success">

                    <label class="control-label" for="inputSuccess1">图片</label>
                    <input type="file" name="newsPic" />
                </div>
                <div class="form-group has-success">
                    <label class="control-label" for="inputSuccess1">描述</label>
                    <input type="text" class="form-control" name="bannerdescribe" value="<%=bannerid[0].bannerdescribe%>">
                </div>
                <div class="form-group has-success">
                    <label class="control-label" for="inputSuccess1">banner分类</label>
                        <% if(bannerid[0].classification==0){%>
                    <label><input type="radio"  name="classification" value=1>活动banner</label>
                    <label><input type="radio" checked   name="classification" value=0>首页banner</label>
                    <%}else if(bannerid[0].classification==1){%>
                    <label><input type="radio" checked  name="classification" value=1>活动banner</label>
                    <label><input type="radio"  name="classification" value=0>首页banner</label>
                    <%}%>

                </div>
                <div class="form-group has-success">
                    <label class="control-label" for="inputSuccess1">修改时间后可以让banner显示到客户端</label>
                    <input class="Wdatekais" type="text" name="bannerTime" value="<%=bannerid[0].bannerTime.toLocaleString()%>" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
                </div>

                <button type="submit" class="bk-margin-5 btn btn-success">修改banner</button>
            </form>
        </div>
    </div>
    <!-- End Main Page -->
</div>
</div>
<!--/container-->

<div class="clearfix"></div>

<!-- start: JavaScript-->
<!-- Vendor JS-->
<script src="../assets/vendor/js/jquery.min.js"></script>
<script src="../assets/vendor/js/jquery-2.1.1.min.js"></script>
<script src="../assets/vendor/js/jquery-migrate-1.2.1.min.js"></script>
<script src="../assets/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="../assets/vendor/skycons/js/skycons.js"></script>
<script src="../assets/vendor/js/pace.min.js"></script>

<!-- Plugins JS-->
<script src="../assets/plugins/jquery-ui/js/jquery-ui-1.10.4.min.js"></script>
<script src="../assets/plugins/scrollbar/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="../assets/plugins/bootkit/js/bootkit.js"></script>
<script src="../assets/plugins/magnific-popup/js/magnific-popup.js"></script>
<script src="../assets/plugins/moment/js/moment.min.js"></script>
<script src="../assets/plugins/fullcalendar/js/fullcalendar.js"></script>
<script src="../assets/plugins/flot/js/jquery.flot.min.js"></script>
<script src="../assets/plugins/flot/js/jquery.flot.pie.min.js"></script>
<script src="../assets/plugins/flot/js/jquery.flot.resize.min.js"></script>
<script src="../assets/plugins/flot/js/jquery.flot.stack.min.js"></script>
<script src="../assets/plugins/flot/js/jquery.flot.time.min.js"></script>
<script src="../assets/plugins/flot-tooltip/js/jquery.flot.tooltip.js"></script>
<script src="../assets/plugins/chart-master/js/Chart.js"></script>
<script src="../assets/plugins/jqvmap/jquery.vmap.js"></script>
<script src="../assets/plugins/jqvmap/data/jquery.vmap.sampledata.js"></script>
<script src="../assets/plugins/jqvmap/maps/jquery.vmap.world.js"></script>
<script src="../assets/plugins/sparkline/js/jquery.sparkline.min.js"></script>

<!-- Theme JS -->
<script src="../assets/js/jquery.mmenu.min.js"></script>
<script src="../assets/js/core.min.js"></script>

<!-- Pages JS -->
<script src="../assets/js/pages/index.js"></script>
<script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
</body>
<script>

    window.onload=function(){
       var s=document.getAttribute('ids');
       console.log(s)
    }


</script>
</html>